package com.dong.ioc.javabased;

import com.dong.ioc.javabased.diTest.MyController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * description
 *
 * @author Administrator 2021/09/06 10:15
 */
public class JavaTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.scan("com.dong.ioc.javabased.diTest");
        context.refresh();

        MyController myController = context.getBean(MyController.class);
        System.out.println(myController);
    }
}
